//
//  CLCycleCollectionView.h
//  Charles
//
//  Created by Leo on 2017/7/14.
//  Copyright © 2017年 charles. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CLCycleCollectionViewDataSource <NSObject>

- (UICollectionViewCell *)clCycleCollectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath;

@end

typedef void(^CycleCollectionViewCellSelect)(NSIndexPath *);

@interface CLCycleCollectionView : UIView

@property (nonatomic,assign) id<CLCycleCollectionViewDataSource>dataSource;
@property (nonatomic,copy) CycleCollectionViewCellSelect cellSelectBlock;
@property (nonatomic,assign) BOOL isAutoScroll;
@property (nonatomic,assign) BOOL isShowPageControl;

- (instancetype)initWithFrame:(CGRect)frame flowlayOut:(UICollectionViewLayout *)flowlayOut class:(Class)cls identifier:(NSString *)identifier;
- (void)setDataArray:(NSArray *)dataArray;
- (NSArray *)indexArray;
- (void)removeTimer;
- (void)setPageEnable:(BOOL)enable;
@end

